package com.easyaop.test.core.manger;

public final class JoinManger {
    /*public static void enter(MethodPointcut pointcut, Object target, Object... args) throws Exception {
        for (int i = 0, size = listeners.size(); i < size; i++, join.listenerIndex = i) {
            MethodListener methodListener = methodListeners[i];
            methodListener.before(join);
        }
    }

    public static void exit(MethodPointcut pointcut) {
        for (EventListener eventListener : pointcut) {
            eventListener.
        }
    }

    public static void _throws(JoinImpl join) {
//        System.out.println(11211);
        MethodListener[] methodListeners = join.getListeners();
        if (methodListeners == null) {
            return;
        }

        for (int i = 0, size = methodListeners.length; i < size; i++) {
            join.listenerIndex = i;
            MethodListener methodListener = methodListeners[i];
            methodListener.exception(join);
        }
    }

    static {
        try {
            *//*declaredField = CopyOnWriteArrayList.class.getDeclaredField("array");
            declaredField.setAccessible(true);
            fieldOffset = UnsafeUtils.unsafe.objectFieldOffset(declaredField);*//*
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }*/
}
